@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* VARIABLES */
:root {
  --c-dark: #212529;
  --c-brand: #be8314;
  --c-brand-light: #ffffffe5; 
  --c-brand-rgb: rgb(20, 190, 71);
  --c-body: #4b4946;
  --font-base: "generalsans", sans-serif;
  --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
  --transition: alll 0.5s ease;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: var(--c-body);
}

h1, h2, h3, h4, h5, h6
.h1, .h2, .h3, .h4, h5, .h6 {
  font-weight: 600;
  color: var(--c-dark);
}

a{
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}

img {
  max-width: 150px;
  height: auto;
}


.section-padding {
  padding-top: 140px;
  padding-bottom: 140px;
}

.bg-cover{
  background-position: center !important;
  background-size: cover !important;
  background-position: center !important;
}


/* navbar */
.navbar {
  box-shadow: var(--box-shadow);
}
.navbar .navbar-nav .nav-link:hover{
  color: #be8314;
  text-decoration: underline;
}
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--c-dark);
}

.navbar .navbar-nav .nav-link.active {
  color: var(--c-brand);
}


/* BTN */
.btn {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 10px, 24px;
}

.btn-brand {
  background-color: var(--c-brand) !important;
  border-color: var(--c-brand) !important;
  color: white !important;
}

.btn-brand:hover {
  background-color: white !important;
  border-color: white !important;
  color: gray !important;
}

/* Halaman Sistem PLTS */
/* Bagian 1 */
.hero-section {
    position: relative;
    width: 100vw; /* Lebar penuh */
    height: 45vh; /* Tinggi penuh sesuai layar */
    background: url('../image/sampul\ 1\ animasi\ page.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay Gelap Transparan */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Transparan hitam */
}

/* Styling Teks */
.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left; /* Biar teks rata kiri */
    color: white;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 10px;
    max-width: 1000px; /* Biar tidak terlalu melebar */
}

/* .hero-content h1,
.hero-content p {
    font-size: 42px;
    font-family: 'General sans', sans-serif;
    text-align: left;
} */

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  width: 100%;
  padding: 33px;
}

.hero-content h1 {
  font-weight: bold;
  font-size: 38px;
}

.hero-content p {
  font-size: 20px;
  margin-top: 19px;
}

@media screen and (max-width: 768px) {
  .hero-section {
    position: relative;
    width: 100vw; /* Lebar penuh */
    height: 40vh; /* Tinggi penuh sesuai layar */
    background: url('../image/sampul\ 1\ animasi\ page.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: center; /* Biar teks rata kiri */
    color: white;
    padding: 20px 20px;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 10px;
    max-width: 460px; /* Biar tidak terlalu melebar */
  }
}

/* bagiancoba */
.content-section {
  background: linear-gradient(rgba(0, 0, 0, 0.507), rgb(0, 0, 0, 0.438)), url('../image/Background\ Animasi\ PLTS.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 300px;
  background-color: rgba(255, 178, 74, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon-item {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  cursor: pointer;
  margin: 15px 0;
  position: relative;
}

.icon-item.active::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -10px;
  width: 4px;
  height: 80%;
  background-color: #fff;
  border-radius: 5px;
}

.icon-item img {
  width: 100px;
  height: 100px;
}

.icon-item span {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-weight: bold;
}

.main-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.content-block {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.content-block.active {
  display: block;
}

.fade-in {
  opacity: 1 !important;
}

.fade-out {
  opacity: 0 !important;
}

.video-desc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-card video {
  max-width: 700px;
  width: 100%;
  border-radius: 8px;
}

.desc-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: black;
}

@media screen and (max-width: 768px) {
  .content-section {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    gap: 20px;
  }

  .icon-item img {
    width: 100px;
    height: 100px;
  }

  .icon-item.active::after {
    content: "";
    position: absolute;
    bottom: -6px !important; /* posisi di bawah icon */
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background-color: white;
    border-radius: 5px;
    top: auto !important;
    right: auto !important;
    height: 4px !important;
  }

  .main-content {
    padding: 20px;
  }

  .desc-card {
    font-size: 14px;
    padding: 15px;
  }
}

/* Footer */
footer {
  background-color: #20262E;
  color: #ffffff;
  padding: 40px 20px;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
  color: orange;
}
.social-icons a {
  margin-right: 15px;
  color: #ffffff;
  font-size: 20px;
}
.social-icons a:hover {
  color: orange;
}
.menu-list a {
  display: block;
  margin-bottom: 10px;
}
.subscribe input {
  margin-bottom: 10px;
}

/* Responsif */
@media (max-width: 1024px) {
  .image-box {
      width: 95%; /* Lebih fleksibel di tablet */
      height: 350px;
  }
}

@media (max-width: 768px) {
  .image-box {
      width: 98%; /* Lebih melebar di layar kecil */
      height: 300px;
  }
}

@media (max-width: 576px) {
  .image-box {
      width: 100%; /* Penuhi layar untuk smartphone */
      height: 250px;
  }
}